﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Threading;
using NotifyServiceReference;

/// <summary>
/// Summary description for CheckTimeOutItemThread
/// </summary>
public class CheckTimeOutItemThread
{
    Thread internalThread;

	public CheckTimeOutItemThread()
	{
        
	}

    public void Start()
    {
        internalThread = new Thread(check);
        internalThread.Start();
    }

    public void check()
    {
        NotifyServiceClient nsc = new NotifyServiceClient();
        while (true)
        {
            nsc.CheckTimeOut();
            Thread.Sleep(10000);
        }
    }
}